﻿@model sipfe.model.dataAccess.SIPMaeEmpresa
@using Resources;
<script type="text/javascript" src="@Url.Content(@properties.mantePersonaJS)"></script>
<script type="text/javascript" src="@Url.Content(@properties.reporteJS)"></script>
<script type="text/javascript">
    $(function () {
        setAutoAyudaEmpresa("#nIdePersona1", "#nIdeCodPaisDoc1", "#nIdeTipoDocum1", "#vNumDocum1", "#vNombresPersona1", "/AutoAyuda/ListaPersonaAuto", "1");
        setAutoAyudaEmpresa("#nIdePersona1", "#nIdeCodPaisDoc1", "#nIdeTipoDocum1", "#vNombresPersona1", "#vNumDocum1", "/AutoAyuda/ListaPersonaAuto", "2");
        inicioPopPupModal("#detalle2", 500, 850, "LISTADO DE PERSONAS ENCONTRADAS");
        //height=560,width=800
    });
</script>
<div id="divContactoEmpresa">@RenderPage("../../Shared/RODatosContactoEmpresa.cshtml")</div>
<br />
<fieldset style="width: 730px;">
    <legend><span>Nuevo Contacto</span></legend>
    <table>
        <tr>
            <td>
                <table style="width: 730px;">
                        <tr>
                            <td>País Emisor<span class="asterisco">(*)</span></td>
                            <td>Tipo documento<span class="asterisco">(*)</span></td>
                            <td>Número documento<span class="asterisco">(*)</span></td>
                            <td>Nombre del contacto<span class="asterisco">(*)</span></td>                            
                        </tr>
                        <tr>
                            <td>@Html.DropDownList("nIdeCodPaisDoc1", (IEnumerable<SelectListItem>)ViewBag.PaisEmisor)</td>
                            <td>@Html.DropDownList("nIdeTipoDocum1", (IEnumerable<SelectListItem>)ViewBag.TipoDocIdent, "--Seleccione--")</td>
                            <td>@Html.TextBox("vNumDocum1", null, new { style = "width:60px;", maxlength = 10 })</td>
                            <td>@Html.TextBox("vNombresPersona1", null, new { style = "width:300px;", maxlength = 120 })
                                <img src="@Url.Content("~/images/buscar.gif")" class="lupita2" alt="CONSULTAR PERSONA" onclick="javascript:buscarPersonaMante('#detalle2','1');"/><input type="hidden" id="nIdePersona1" />
                                <img src="@Url.Content("~/images/newPerson.jpg")" class="lupita2"  alt="AGREGAR PERSONA" onclick="javascript: regPersonaNaturalPop('1',this);" />
                                <img src="@Url.Content("~/images/editar.png")" class="lupita2" alt="EDITAR PERSONA" onclick="javascript:editarDatosPersonaMante(this,'','3');" id="btnEdita2308"  />
                            </td>
                        </tr>
                        <tr><td colspan="4" id="botonClic">&nbsp;</td></tr>
                        <tr>
                            <td colspan="3">Cargo del contacto<span class="asterisco">(*)</span></td>
                            <td colspan="1">Tipo contacto</td>
                        </tr>
                        <tr>
                            <td colspan="3">@Html.DropDownList("nIdeCargo", (IEnumerable<SelectListItem>)ViewBag.CargoLaboral, "--Seleccione--")</td>
                            <td colspan="1">@Html.DropDownList("nIdeTipoContacto", (IEnumerable<SelectListItem>)ViewBag.TipoContacto, "--Seleccione--")</td>
                        </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 30px; text-align: center;">
                <input type="button" value="Registrar" onclick="javascript:registrarContactoEmpresa('#divContactoEmpresa','@ViewBag.swReg');" />
            </td>
        </tr>
    </table>
</fieldset>
 <table style="width: 720px;">
    <tr>
        <td>El campo es obligatorio<span class="asterisco">(*)</span></td>
    </tr>
</table>
<div id="detalle2"></div>

